package sync;

public class ThreadB extends Thread {
	
	@Override
	public void run() {
		while(true){
			System.out.println("threadb");
			try {
				sleep(1500);//TODO 1500与500分别测试
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			
			if(Cache.request!=null){
				System.out.println("request:"+Cache.request);
				Cache.response="hello threada";
				System.out.println("threadb end");
				return;
			}
		}
	}

}
